package com.yzh.homework.homework02;

/**
 * @author 于振晗
 * @title: Actor
 * @description: TODO 艺人类
 * @date 2020年08月28日
 * @path com.yzh.homework
 */
//演电影
interface Movie{
    public default void movie(){
        System.out.println("我能演电影");
    }
}

//演电视剧
interface Television{
    public default void television(){
        System.out.println("我能演电视剧");
    }
}

//唱歌
interface Sing{
    public default void sing(){
        System.out.println("我会唱歌");
    }
}

public class Actor implements Movie,Television,Sing{
    private String name;

    public Actor(String name) {
        this.name = name;
    }

    public void show(){
        System.out.println("大家好!我是"+name);
    }
    public static void main(String[] args) {
        Actor actor = new Actor("马素素");
        actor.show();
        actor.movie();
        actor.television();
        actor.sing();
    }
}
